import { useParams, useSearchParams } from "react-router-dom"

export function RouteParam() {

    const param = useParams();
    const [searchParam] = useSearchParams()

    return (
        <div>
            参数id值：{param.id}
            参数id值：{searchParam.get('id')}
        </div>
    )
}